package config.random;

import config.auto.My2ConfigurationProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyRandom {

    @Value("${random.value}")
    private String secret;

    @Value("${random.number}")
    private String number;

    @Value("${random.bignumber}")
    private String bignumber;

    @Value("${random.uuid}")
    private String uuid;

    @Autowired
    My2ConfigurationProperties my2ConfigurationProperties;

    public My2ConfigurationProperties getMy2ConfigurationProperties ( ) {
        return my2ConfigurationProperties;
    }

    public void setMy2ConfigurationProperties ( My2ConfigurationProperties my2ConfigurationProperties ) {
        this.my2ConfigurationProperties = my2ConfigurationProperties;
    }

    public String getSecret ( ) {
        return secret;
    }

    public void setSecret ( String secret ) {
        this.secret = secret;
    }

    public String getNumber ( ) {
        return number;
    }

    public void setNumber ( String number ) {
        this.number = number;
    }

    public String getBignumber ( ) {
        return bignumber;
    }

    public void setBignumber ( String bignumber ) {
        this.bignumber = bignumber;
    }

    public String getUuid ( ) {
        return uuid;
    }

    public void setUuid ( String uuid ) {
        this.uuid = uuid;
    }

    @Override
    public String toString ( ) {
        return "MyRandom{" +
                "secret=" + secret +
                ", number=" + number +
                ", bignumber=" + bignumber +
                ", uuid='" + uuid + '\'' +
                '}';
    }
}
